using System.Collections.Concurrent;
using MoonFramework.Net;

namespace MoonFramework.Model;

public class Space
{
    public int ID { get; set; }
    public string Name;
    public string Description;
    public string Music;

    private readonly ConcurrentDictionary<int, Character> Characters = new();

    public void AddCharacter(BaseConnection connection, Character character)
    {
        if (Characters.ContainsKey(character.ID))
            return;
        Characters.TryAdd(character.ID, character);
    }
}